/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Loja;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author rm65015
 */
@WebServlet(urlPatterns="/processarLogin")
public class ProcessarLogin extends HttpServlet{
    
    @Override
        protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{
            String usuario = req.getParameter("usuario");
            String pwd = req.getParameter("senha");
            
            //escrever codigo JBA
            
            PrintWriter writer = resp.getWriter();
            writer.println("Olá " + usuario);
            writer.println("Neste momento a base não está disponivel");
            writer.println("Volte mais tarde quando eu implemenar esta função !");
    }
    


}
